package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yl.auth.entity.CuishouBean;
import com.yl.auth.mapper.CuishouMapper;
import com.yl.auth.service.CuishouService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 王帅洋
 * @belongsProject: ln-ylHouse
 * @belongsPackage: com.ln.auth.service.impl
 * @Date 2023/6/15 11:26
 * @Description: TODO
 * @Version: 1.0
 */
@Service
public class CuishouServiceImpl extends ServiceImpl<CuishouMapper, CuishouBean> implements CuishouService {
    @Resource
    private CuishouMapper cuishouMapper;

    @Override
    public IPage<CuishouBean> selectpage(Page<CuishouBean> page, CuishouBean cuishouBean) {
        IPage<CuishouBean> iPage = cuishouMapper.selepage(page, cuishouBean);
        return iPage;
    }

    @Override
    public CuishouBean getById(Long id) {
        CuishouBean cuishouBean = cuishouMapper.getById(id);
        return cuishouBean;
    }

}
